package com.ysd.lis.entity.lab;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;

import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ysd.lis.entity.BaseEntity;
import com.ysd.lis.entity.BaseEntityJpa;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * <p>
 *
 * </p>
 *
 * @author LiuQi
 * @since 2023-12-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "LAB_FEE_ITEM")
@TableName("LAB_FEE_ITEM")
public class LabFeeItem extends BaseEntityJpa {

    private static final long serialVersionUID = 1L;

    /**
     * 项目名称
     */
    @TableField("FEE_NAME")
    @Column(name = "FEE_NAME")
    private String feeName;

    /**
     * 项目类型
     */
    @TableField("FEE_CLASS")
    @Column(name = "FEE_CLASS")
    private String feeClass;

    /**
     * 规格
     */
    @TableField("SPEC")
    @Column(name = "SPEC")
    private String spec;

    /**
     * 单价
     */
    @TableField("PRICE")
    @Column(name = "PRICE")
    private BigDecimal price;

    /**
     * 助记符
     */
    @TableField("INPUT_CODE")
    @Column(name = "INPUT_CODE")
    private String inputCode;

    /**
     * 简称
     */
    @TableField("SHORT_NAME")
    @Column(name = "SHORT_NAME")
    private String shortName;

    /**
     * 最后同步时间
     */
    @TableField("LAST_SYNCH_DATE")
    @Column(name = "LAST_SYNCH_DATE")
    private String lastSynchDate;

    /**
     * 备注
     */
    @TableField("REMARK")
    @Column(name = "REMARK")
    private String remark;

    /**
     * 序号
     */
    @TableField("SEQ")
    @Column(name = "SEQ")
    private BigDecimal seq;

    /**
     * 可用病人类型：1，2，3，4
     */
    @TableField("USEPATTYPE")
    @Column(name = "USEPATTYPE")
    private String usepattype;

    /**
     * 绿色通道是否可用：1：可用；0：不可用
     */
    @TableField("GREENCHANNEL")
    @Column(name = "GREENCHANNEL")
    private String greenchannel;


    /**
     * 成本价
     */
    @TableField("COST")
    @Column(name = "COST")
    private BigDecimal cost;

    /**
     * 系数
     */
    @TableField("RATIO")
    @Column(name = "RATIO")
    private BigDecimal ratio;

    /**
     * 标本可接受性专业组   如：生化、免疫、临检、微生物、其它是空’’
     */
    @TableField("SIG")
    @Column(name = "SIG")
    private String sig;

    /**
     * 周转时间专业组   如：生化、自动化免疫、三大常规、凝血、其它是空’’
     */
    @TableField("TATSIG")
    @Column(name = "TATSIG")
    private String tatsig;

    /**
     * 项目编码
     */
    @TableField("FEE_CODE")
    @Column(name = "FEE_CODE")
    private String feeCode;

    /**
     * 所属医院
     */
    @TableField("HOSPITAL")
    @Column(name = "HOSPITAL")
    private String hospital;

    /**
     * 项目代码（HIS）
     */
    @TableField("HIS_ITEM_CODE")
    @Column(name = "HIS_ITEM_CODE")
    private String hisItemCode;

    /**
     * 项目名称（HIS）
     */
    @TableField("HIS_ITEM_NAME")
    @Column(name = "HIS_ITEM_NAME")
    private String hisItemName;

    /**
     * 项目类别（HIS）
     */
    @TableField("HIS_ITEM_TYPE")
    @Column(name = "HIS_ITEM_TYPE")
    private String hisItemType;

    /**
     * 项目代码（外送）
     */
    @TableField("WS_ITEM_CODE")
    @Column(name = "WS_ITEM_CODE")
    private String wsItemCode;

    /**
     * 项目名称（互认）
     */
    @TableField("HR_ITEM_NAME")
    @Column(name = "HR_ITEM_NAME")
    private String hrItemName;


    /**
     * 项目代码（互认）
     */
    @TableField("HR_ITEM_CODE")
    @Column(name = "HR_ITEM_CODE")
    private String hrItemCode;

    /**
     * 项目名称（外送）
     */
    @TableField("WS_ITEM_NAME")
    @Column(name = "WS_ITEM_NAME")
    private String wsItemName;

    /**
     * 执行科室
     */
    @TableField("DEPARTMENT")
    @Column(name = "DEPARTMENT")
    private String department;

    /**
     * 适合性别  0:男；1：女； 2：全部
     */
    @TableField("FIT_SEX")
    @Column(name = "FIT_SEX")
    private String fitSex;

    /**
     * 是否急诊项目 0:常规；1:急诊;2:全部
     */
    @TableField("IS_EMERGENCY")
    @Column(name = "IS_EMERGENCY")
    private String isEmergency;

    /**
     * 起始日期
     */
    @TableField("START_TIME")
    @Column(name = "START_TIME")
    private Timestamp startTime;

    /**
     * 截止日期
     */
    @TableField("END_TIME")
    @Column(name = "END_TIME")
    private Timestamp endTime;

    /**
     * 是否染色项目
     */
    @TableField("IS_STAINING")
    @Column(name = "IS_STAINING")
    private String isStaining;


    /**
     * 染色默认结果
     */
    @TableField("STAINING_RESULT")
    @Column(name = "STAINING_RESULT")
    private String stainingResult;

    @TableField(exist = false)
    @Transient
    private String vsBarCodeTypeId;

    @TableField(exist = false)
    @Transient
    private String rptBanFeeItemId;
    /**
     *
     */
    @TableField(exist = false)
    @Transient
    private Integer feeiVsDictCnt;


}
